package com.leather.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.leather.admin.entity.Permission;
import com.leather.admin.entity.RolePermission;
import com.leather.admin.mapper.RolePermissionMapper;
import com.leather.admin.service.PermissionRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionRoleServiceImpl extends ServiceImpl<RolePermissionMapper, RolePermission> implements PermissionRoleService {
    @Override
    public int addRolePermisson(int roleId, int permissionId) {
        if(roleId<=0||permissionId<=0){
            return 0;
        }
        
        return 0;
    }

    @Override
    public List<Permission> getRolePermission(String adminName) {
        return null;
    }
}
